package com.um.jdy.platform.device.entity.dto;

import com.um.springboot.starter.orm.params.ListDTO;
import com.um.springboot.starter.orm.params.ListParams;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 邓南辉
 * 日期 2023/2/13
 * 版权所有 广州优匠科技有限公司
 */
@Data
public class PileListDTO extends ListDTO {

    @ApiModelProperty(value = "充电站ID")
    private String deviceStationId;

    @Override
    public ListParams toListParams() {
        ListParams listParams = toListParams(
                new String[]{"deviceStationId"},
                new String[]{"device_station_id"});
        listParams.getCondition().put("orderby","create_time desc");
        return listParams;
    }
}
